home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
em7sui_1
/
RADIOBUT.WR_
/
RADIOBUT.WR
Wrap
Text File
|
1998-09-17
|
2KB
|
92 lines
#VRML V2.0 utf8
# Copyright Electrohouse 1998
# This file may not be copied, modified or distributed
# in any way which violates the ProtoPak licensing
# agreement established by Electrohouse.
EXTERNPROTO em7_RadioButton [
exposedField MFString caption
exposedField SFColor captionColor
field SFFloat height
field SFBool value
field SFInt32 controlIndex
eventIn SFBool set_value
eventIn SFInt32 set_activatedIndex
eventOut SFBool value_changed
eventOut SFTime touchTime
eventOut SFInt32 activatedIndex_changed
] "..\VR_UI.wrl#em7_RadioButton"
Transform {
translation 3 -2 0
children [
DEF RED_SWITCH em7_RadioButton {
caption "Red light"
value FALSE
captionColor 1 0 0
}
]
}
Transform {
translation 3.125 -0.3 0
children [
DEF GREEN_SWITCH em7_RadioButton {
caption "Green light"
value TRUE
height 0.75
captionColor 0 1 0
}
]
}
Transform {
translation 3.25 1 0
children [
DEF BLUE_SWITCH em7_RadioButton {
caption "Blue light"
value FALSE
height 0.5
captionColor 0 0 1
}
]
}
DEF RED_LIGHT DirectionalLight {
color 1 0 0
direction -1 -1 -1
}
DEF GREEN_LIGHT DirectionalLight {
color 0 1 0
direction -1 -1 -1
}
DEF BLUE_LIGHT DirectionalLight {
color 0 0 1
direction -1 -1 -1
}
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
specularColor 0.9 0.9 0.9
ambientIntensity 0.8
shininess 1
}
}
geometry Box {}
}
Viewpoint {
description "Radio button view"
position 3 0 10
}
ROUTE RED_SWITCH.value_changed TO RED_LIGHT.on
ROUTE GREEN_SWITCH.value_changed TO GREEN_LIGHT.on
ROUTE BLUE_SWITCH.value_changed TO BLUE_LIGHT.on